<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
	<meta name="apple-touch-fullscreen" content="YES" />
	<link rel="apple-touch-icon" href="apple-touch-icon.png" />
	<meta name="format-detection" content="telephone=no" />
	<?=link_tag('app/views/iphone/style-iphone.css');?>
	<title><?=$meta_title;?></title>
	<script type="text/javascript" src="<?=base_url();?>javascript/jquery.js"></script>
	<script type="text/javascript" charset="utf-8">
		window.onload = function() {
		  setTimeout(function(){window.scrollTo(-10, 0);}, 100);
		};
	</script>
</head>

<body>
	<? if (isset($status)) echo '<div class="status">'.$status.'</div>';?>

<?if ($goto === 'login') : ?>

	<div id="header">
		<h1><?=$title;?></h1>
	</div>
	
	<?$quote= random_element($quotes);?>
	<ul class="data">
		<li><p><?=$quote[0]?> <br/><strong><?=$quote[1]?></strong></p></li>
	</ul>
	
	<div id="<?=$goto?>" class="panel">
		<?=$content?>
	</div>

<?php else: ?>

	<div id="header">
		<h1><?=$title;?></h1>
		<?=anchor($goto."#navigation", 'Navi', array('class' => 'button right'));?>
		<?=anchor($goto."#user", $userdata->username, array('class' => 'button left'));?>
	</div>
	
	
	<div id="<?=$goto?>" class="panel">
		<?=$content?>
	</div>
			
	<?=$navigation?>

<?php endif; ?>		

</body>
</html>